﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<meta charset="utf-8" />
		<title>资源管理</title>
		<!-- layui.css -->
		<link href="layui/css/layui.css" rel="stylesheet" />
	</head>

	<body>
		<div style="padding: 25px 50px 25px 0px;">
			<form class="layui-form">
				<div class="layui-form-item">
					<input type="text" id="lblid" name="lblid" placeholder="" autocomplete="off" readonly="true" class="layui-input layui-hide ">
					<label class="layui-form-label">资源标题</label>
					<div class="layui-input-block">
						<input id="articlename" type="text" name="articlename" required lay-verify="required" placeholder="请输入资源标题" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">作者</label>
					<div class="layui-input-block">
						<input id="author" type="text" name="author" required lay-verify="required" placeholder="请输入作者" autocomplete="off" class="layui-input">
					</div>
				</div>

				<div class="layui-form-item">
					<label class="layui-form-label">资源分类</label>
					<div class="layui-input-block">
						<select id="articletype" name="articletype" lay-verify="required">
							<option value="0">默认分类</option>
							<option value="1">源码</option>
							<option value="2">文档</option>

						</select>
					</div>
				</div>

				<div class="layui-form-item layui-form-text">
					<label class="layui-form-label">资源简介</label>
					<div class="layui-input-block">
						<textarea id="articleoutline" name="articleoutline" placeholder="请输入资源简介" class="layui-textarea"></textarea>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">资源图片</label>
					<input id="imgurl" type="text" name="imgurl" class="layui-input layui-hide">
					<img id="imgpic" src="images/pic.png" onerror="errorImg(this)" height="60px" />
				</div>

				<div class="layui-form-item">
					<label class="layui-form-label">下载地址</label>
					<div class="layui-input-block">
						<input id="downloadurl" type="text" name="downloadurl" required lay-verify="required" placeholder="请输入下载地址" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">演示地址</label>
					<div class="layui-input-block">
						<input id="demourl" type="text" name="demourl" placeholder="请输入演示地址" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">

					<div class="layui-input-block">
						<button class="layui-btn" lay-submit="" lay-filter="btnsave">保存</button>
					</div>
				</div>
			</form>

		</div>
		<script src="layui/layui.js"></script>
		<script type="text/javascript" src="js/app.js" ></script>
		<script src="js/resource_edit.js"></script>

	</body>

</html>